From: Florian Müllner Date: Thu, 22 May 2025 02:41:11 +0000 (+0200) Subject: dbusServices/extensions: Remove custom stylesheet X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~116^2^2~12 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=cd010b02b1c2f469766fab355a9d9269e627fca8;p=gnome-shell.git dbusServices/extensions: Remove custom stylesheet There is no custom styling left :-) Part-of: --- diff --git a/js/dbusServices/extensions/css/application.css b/js/dbusServices/extensions/css/application.css deleted file mode 100644 index e69de29bb..000000000 diff --git a/js/dbusServices/extensions/extensionPrefsDialog.js b/js/dbusServices/extensions/extensionPrefsDialog.js index ab7e684d7..967288d52 100644 --- a/js/dbusServices/extensions/extensionPrefsDialog.js +++ b/js/dbusServices/extensions/extensionPrefsDialog.js @@ -1,6 +1,4 @@ import Adw from 'gi://Adw?version=1'; -import Gdk from 'gi://Gdk?version=4.0'; -import Gio from 'gi://Gio'; import GLib from 'gi://GLib'; import GObject from 'gi://GObject'; import Gtk from 'gi://Gtk?version=4.0'; @@ -99,8 +97,6 @@ class ExtensionPrefsErrorPage extends Adw.PreferencesPage { constructor(extension, error) { super(); - this._addCustomStylesheet(); - const {uuid, name, url} = extension.metadata; let label = @@ -134,17 +130,4 @@ class ExtensionPrefsErrorPage extends Adw.PreferencesPage { ]; this._errorMarkdown = lines.join('\n'); } - - _addCustomStylesheet() { - let provider = new Gtk.CssProvider(); - let uri = 'resource:///org/gnome/Shell/Extensions/css/application.css'; - try { - provider.load_from_file(Gio.File.new_for_uri(uri)); - } catch (e) { - logError(e, 'Failed to add application style'); - } - Gtk.StyleContext.add_provider_for_display(Gdk.Display.get_default(), - provider, - Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION); - } } diff --git a/js/dbusServices/org.gnome.Shell.Extensions.src.gresource.xml b/js/dbusServices/org.gnome.Shell.Extensions.src.gresource.xml index a233986a8..03ff4125a 100644 --- a/js/dbusServices/org.gnome.Shell.Extensions.src.gresource.xml +++ b/js/dbusServices/org.gnome.Shell.Extensions.src.gresource.xml @@ -18,7 +18,6 @@ - css/application.css ui/extension-error-page.ui